package cn.ad.server.persistence;

import java.util.List;
import java.util.Map;

public interface ConfigRepository {

	void warmAllConfig();
	
	/**
	 * 获取所有缓存中的系统配置
	 * @return
	 */
	Map<String, String> fetchAllConfig();

	//String fetchHostName();

	/**
	 * 获取当前服务器节点数量
	 * @return
	 */
	//Integer fetchServerNumber();

	int fetchGuidClickLimit();

	int fetchUserAndCreativeClickLimit();

	int fetchGuidImpressionsLimit();

	int fetchUserAndCreativeImpressionsLimit();

	List<String> fetchAllHostName();

	int fetchTimeBucket();

	int fetchFilterRatio();

	List<String> fetchExcludeCampaign();

	List<String> fetchMonitoredStrategy();

	boolean fetchDebugMode();

	List<String> fetchMonitoredAdSpace();
	
	long fetchDeviceIdTimeout();

	long fetchGuidTimeout(int channelId);

	String fetchDeviceActivePolicy();
}
